/* eslint-disable @typescript-eslint/no-var-requires */
const proxy = require("http-proxy-middleware");
module.exports = function (app) {
    ["/api","/custom","/f"].map(p=>app.use(
        p,
        proxy({
            target: "http://192.168.5.120:5213",
            changeOrigin: true,
        })
    ));
    app.use(
        "/data-acquisition-platform-api",
        proxy({
            target: "http://192.168.5.176:30001/api",
            changeOrigin: true,
            pathRewrite: {
                "^/data-acquisition-platform-api": "",
              },
        })
    );
};
